#include "bsp_systick.h"

unsigned int system_tick_num = 0;


void bsp_InitSystick(uint16_t nms)
{
    if(SysTick_Config(SystemCoreClock / 1000 * nms)) {
        while(1);
    }
}


unsigned int sys_now(void)
{
    return system_tick_num;
}


void SysTick_Handler(void)
{
    system_tick_num += 20;
}


